home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9209.ARJ
/
1009073A
< prev
next >
Wrap
Text File
|
1992-05-11
|
261b
|
12 lines
short train_weights(target, net, eta, w, x, N)
short target, net, w[], x[], N;
float eta;
{
short delta_w, i;
for(i=0; i<N+1; i++){
delta_w = eta*x[i]*(target-net);
w[i] = w[i] + delta_w;
}
} /* ends train_weights */